Skip to content

Conversation

@KianNH
Copy link
Member

@KianNH KianNH commented Jan 21, 2025

Summary

Restore analytics events for various elements, using their original event names.

The new track utility provided in ~/util/zaraz will log the event to the console in the event that window.zaraz is undefined, such as in local development or preview builds.

image

@cloudflare-workers-and-pages
Copy link

Deploying cloudflare-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d343ce
Status: ✅  Deploy successful!
Preview URL: https://97e1ba7e.cloudflare-docs-7ou.pages.dev
Branch Preview URL: https://kian-pcx-14579.cloudflare-docs-7ou.pages.dev

View logs

Copy link
Collaborator

@kodster28 kodster28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

The logic for external link clicks is a touch overactive on previews (b/c technically all links are external to our regular site when you're on a preview URL)... but shouldn't impact anything.

@KianNH KianNH merged commit 687f296 into production Jan 22, 2025
11 checks passed
@KianNH KianNH deleted the kian/PCX-14579 branch January 22, 2025 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants